import vueRequest from "@/network/request.js";
/**
 * 点击登陆
 */
export function login(data) {
  return vueRequest.request({
    method: "post",
    url: "/login/",
    data
  });
}
/**
 * 注册
 */
export function register(data) {
  return vueRequest.request({
    method: "post",
    url: "/register/",
    data
  });
}

/**
 * 获取验证码
 */
export function getSms(data) {
  // 发送 POST 请求
  return vueRequest.request({
    method: "post",
    url: "/getSms/",
    data
  });
}
